package com.reason.search.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

/*
* es映射类
* */
@Document(indexName = "customerinfo",type = "dos")
public class CustomerInfo implements Serializable {
    //主键id
    @Id
    @Field(store = true, type = FieldType.Keyword)
    private Long id;
    //用户的真实名字
    @Field(store = true, type = FieldType.Keyword)
    private String name;
    //用户的手机号
    @Field(store = true, type = FieldType.Long)
    private Long phone;
    /*
     * 用户年龄
     * */
    @Field(store = true, type = FieldType.Integer)
    private Integer age;
    //用户的昵称
    @Field(store = true, type = FieldType.Text, analyzer = "ik_smart")
    private String nick;
    //用户的性别
    @Field(store = true, type = FieldType.Keyword)
    private String sex;
    //用户的生日
    private Date birthday;
    //用户的常驻地址
    @Field(store = true, type = FieldType.Text, analyzer = "ik_smart")
    private String address;
    //用户的婚姻状态
    @Field(store = true, type = FieldType.Keyword)
    private String maritalStatus;
    // 用户的身高
    @Field(store = true, type = FieldType.Integer)
    private Integer height;
    //用户的学历
    @Field(store = true, type = FieldType.Keyword)
    private String education;
    //用户的月薪
    @Field(store = true, type = FieldType.Keyword)
    private String salary;

    //用户的生肖
    @Field(store = true, type = FieldType.Keyword)
    private String zodiac;
    //用户是否有子女
    @Field(store = true, type = FieldType.Keyword)
    private String children;
    //用户的血型
    @Field(store = true, type = FieldType.Keyword)
    private String bloodType;
    //用户是否购车
    @Field(store = true, type = FieldType.Keyword)
    private String car;
    //用户是什么名族
    @Field(store = true, type = FieldType.Keyword)
    private String nation;
    //用户是否有房子
    @Field(store = true, type = FieldType.Keyword)
    private String house;
    //用户是会员，0为普通会员，1为高级会员
    @Field(store = true, type = FieldType.Integer)
    private Integer member;
    //用户的体重
    @Field(store = true, type = FieldType.Integer)
    private Integer weight;
    //用户的星座
    @Field(store = true, type = FieldType.Keyword)
    private String constellation;
    //用户的兴趣爱好
    @Field(store = true, type = FieldType.Keyword)
    private String favorite;
    //择偶表外键id
    @Field(store = true, type = FieldType.Long)
    private Long condition_id;
    //'婚姻观念表外键id',
    @Field(store = true, type = FieldType.Long)
    private Long marriage_id;
    //工作学习情况表外键id',
    @Field(store = true, type = FieldType.Long)
    private Long job_id;
    // '经济实力表外键id'
    @Field(store = true, type = FieldType.Long)
    private Long economics_id;
    //用户生活表外键id
    @Field(store = true, type = FieldType.Long)
    private Long lifestyle_id;
    //择偶表数据
    private String condition;
    //经济实力数据
    private String economics;
    //工作学习数据
    private String job;
    //用户生活
    private String lifeStyle;
    //获取婚姻观念
    private String marriage;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(String maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public String getZodiac() {
        return zodiac;
    }

    public void setZodiac(String zodiac) {
        this.zodiac = zodiac;
    }

    public String getChildren() {
        return children;
    }

    public void setChildren(String children) {
        this.children = children;
    }

    public String getBloodType() {
        return bloodType;
    }

    public void setBloodType(String bloodType) {
        this.bloodType = bloodType;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public Integer getMember() {
        return member;
    }

    public void setMember(Integer member) {
        this.member = member;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getConstellation() {
        return constellation;
    }

    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }

    public String getFavorite() {
        return favorite;
    }

    public void setFavorite(String favorite) {
        this.favorite = favorite;
    }

    public Long getCondition_id() {
        return condition_id;
    }

    public void setCondition_id(Long condition_id) {
        this.condition_id = condition_id;
    }

    public Long getMarriage_id() {
        return marriage_id;
    }

    public void setMarriage_id(Long marriage_id) {
        this.marriage_id = marriage_id;
    }

    public Long getJob_id() {
        return job_id;
    }

    public void setJob_id(Long job_id) {
        this.job_id = job_id;
    }

    public Long getEconomics_id() {
        return economics_id;
    }

    public void setEconomics_id(Long economics_id) {
        this.economics_id = economics_id;
    }

    public Long getLifestyle_id() {
        return lifestyle_id;
    }

    public void setLifestyle_id(Long lifestyle_id) {
        this.lifestyle_id = lifestyle_id;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getEconomics() {
        return economics;
    }

    public void setEconomics(String economics) {
        this.economics = economics;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getLifeStyle() {
        return lifeStyle;
    }

    public void setLifeStyle(String lifeStyle) {
        this.lifeStyle = lifeStyle;
    }

    public String getMarriage() {
        return marriage;
    }

    public void setMarriage(String marriage) {
        this.marriage = marriage;
    }
}
